

@echo off
cls

set PATH=D:\000repositories\denis-library\001workspace\utilities\cmake-1.3.0\bin;C:\Qt\Tools\mingw482_32\bin;%PATH%

set SOURCE_DIRECTORY=%~dp0
set SOURCE_DIRECTORY=%SOURCE_DIRECTORY:~0,-1%

set BUILDDIR=%SOURCE_DIRECTORY%\build
set GENERATOR=MinGW Makefiles
set CMAKE_BUILD_TYPE=Release

echo [ LAUNCH CMAKE ] ...
echo [ SOURCE_DIRECTORY ] 
echo     %SOURCE_DIRECTORY%
echo [ BUILDDIR ] 
echo     %BUILDDIR%

    cmake                    ^
    -H"%SOURCE_DIRECTORY%"   ^
    -B"%BUILDDIR%"           ^
    -G"%GENERATOR%"          ^
    -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%

    cd "%BUILDDIR%" 
    cmake --build . --config Release


